package cn.tedu.fruitshop.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class UserAddNewDTO implements Serializable {

    /**
     * 用户名
     */
    @NotNull(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", required = true)
    private String username;
    /**
     * 密码
     */
    @NotNull(message = "密码不能为空")
    @ApiModelProperty(value = "密码", required = true)

    private String password;
    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称", required = true)
    private String nickname;
    /**
     * 联系方式
     */
    @NotNull(message = "联系方式不能为空")
    @ApiModelProperty(value = "联系方式", required = true)
    private String phone;
    /**
     * 性别
     */
    @ApiModelProperty(value = "性别", required = true)
    private String sex;
    /**
     * 地址
     */
    @ApiModelProperty(value = "地址", required = true)
    private String address;
    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱", required = true)
    private String email;

    private Integer enable;


}
